package com.microblog.microblogsystem.domain.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("博客阅读返回数据")
public class BlogReadVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Long uid;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String image;

    @ApiModelProperty(value = "博客文章id")
    private Long bid;

    @ApiModelProperty(value = "博客文章标题")
    private String title;

    @ApiModelProperty(value = "博客文章内容")
    private String content;

    @ApiModelProperty(value = "博客文章图片")
    private String images;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "博客文章类型")
    private String tname;

    @ApiModelProperty(value = "博客文章评论数")
    private Long commentCount;

    @ApiModelProperty(value = "博客文章点赞数")
    private Long likeCount;

    @ApiModelProperty(value = "博客文章评论列表")
    private List<CommentVO> commentVOList;
}
